package cn.orange.demo;

import android.content.Context;
import android.content.Intent;

public class ListCellData {

	private String controlName = "";
	private Context context=null;//获取当前上下文环境
	private Intent relatedIntent;
	
	public ListCellData(Context context,String name,Intent relatedIntent) {
		this.context=context;
		this.controlName=name;
		this.relatedIntent=relatedIntent;
	}
	public Intent getRelatedIntent() {
		return relatedIntent;
	}
	public Context getContext() {
		return context;
	}
	public String getControlName() {
		return controlName;
	}
	public void startActivity(){
		getContext().startActivity(getRelatedIntent());
	}
	public String toString(){
		return getControlName();
	}
}
